<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset=UTF-8>
		<title>联盟商家</title>
	    <base href="<%=basePath%>">
		<link rel="stylesheet" type="text/css" href="bootstrap-rs/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="bootstrap-rs/themes/icon.css">
		<link rel="stylesheet" type="text/css" href="bootstrap-rs/demo.css">
		<script type="text/javascript" src="bootstrap-rs/jquery.min.js"></script>
		<script type="text/javascript" src="bootstrap-rs/jquery.easyui.min.js"></script>
	</head>
	<body>
	<form action="">
		<table border="1">
			<tr>
				<td>所属行业</td>
				<td>
					<select>
						<option>请选择</option>
					</select>
				</td>
				<td>商家性质</td>
				<td>
					<select>
						<option>请选择</option>
					</select>				
				</td>				
			</tr>
			<tr>
				<td>经营状况</td>
				<td>
					<select>
						<option>请选择</option>
					</select>				
				</td>
				<td>商家级别</td>
				<td>
					<select>
						<option>请选择</option>
					</select>				
				</td>			
			</tr>
			<tr>
				<td>审核状态</td>
				<td>
					<select>
						<option>请选择</option>
					</select>				
				</td>
				<td>注销状态</td>
				<td>
					<select>
						<option>请选择</option>
					</select>				
				</td>				
			</tr>
			<tr>
				<td>
					<input type="submit" value="查询">
					<input type="reset" value="重置">
				</td>			
			</tr>
		</table>
	</form>
	<hr color="green">
	<h2>联盟商家列表</h2>
	 <table border="1" align="left" width="100%">
	    <thead>
		    <tr>
		        <th>商家名称</th>
		        <th>所属行业</th>
		        <th>商家级别</th>
		        <th>商家性质</th>
		        <th>经营状况</th>
		        <th>联系人</th>
		        <th>审核状态</th>
		        <th>注销状态</th>
		        <th>操作<a>[添加]</a></th>
		    </tr>
	    </thead>
    	<c:forEach items="${list}" var="merchant">
    		<tr>
		    	<td><a href="club/merchant/queryById?id=${merchant.nPartnerno}">${merchant.vName}</a></td>
		    	<td>${merchant.vVocation}</td>
		    	<td>${merchant.vShortname}</td>
		    	<td>${merchant.vProperyt}</td>
		    	<td>${merchant.managerStatus}</td>
		    	<td>${merchant.vContator}</td>
		    	<td>${merchant.vStatus}</td>
		    	<td>
		    		<c:if test="${merchant.nStatus eq 1}">正式</c:if>
		    		<c:if test="${merchant.nStatus eq 0}">潜在</c:if>
		    	</td>
		    	<td>
		    		<a href="club/merchant/toUpdate?id=${merchant.nPartnerno}">修改</a>      
		    		<a href="#">删除</a>      
		    		<c:if test="${merchant.nStatus eq 1}"><a href="#">注销</a></c:if>
		    		<c:if test="${merchant.nStatus eq 0}"><a href="#">转正</a></c:if>
		    	</td>
	    	</tr>
	    </c:forEach>
	</table> 
	</body>
</html>